﻿using Interfaces.FilterModels;
using Interfaces.Filters;
using Interfaces.Models;

namespace BusinessLogic.Models.Filter.GenericFilters
{
    public class PairFilter : BusinessLogic.Models.Filter.GenericFilters.NameSupportedFilter<IPair, IPairFilterModel>, IPairFilter
    {
        public PairFilter(IXchangeRateFilter xchangeRateFilter, IPairFilterModel filterModel)
            : base(filterModel)
        {
            FilterModel = filterModel;
            XchangeRateFilter = xchangeRateFilter;
        }

        public IXchangeRateFilter XchangeRateFilter { get;  set; }

        public IPairFilterModel FilterModel { get; set; }
    }
}
